#ifndef BONDERBASICCONFIG_H
#define BONDERBASICCONFIG_H

#include "basicconfig.h"

class BonderBasicConfig : public BasicConfig
{
    Q_OBJECT

    Q_PROPERTY(bool sensorTrayElevatorAttached READ sensorTrayElevatorAttached WRITE setSensorTrayElevatorAttached
                   NOTIFY sensorTrayElevatorAttachedChanged)

public:
    BonderBasicConfig(QObject *parent = nullptr) : BasicConfig(parent)
    {
        init();
    }

    bool sensorTrayElevatorAttached() const
    {
        return m_sensorTrayElevatorAttached;
    }

public slots:
    void setSensorTrayElevatorAttached(bool sensorTrayElevatorAttached)
    {
        if (m_sensorTrayElevatorAttached == sensorTrayElevatorAttached)
            return;

        m_sensorTrayElevatorAttached = sensorTrayElevatorAttached;
        emit sensorTrayElevatorAttachedChanged(m_sensorTrayElevatorAttached);
    }

signals:
    void sensorTrayElevatorAttachedChanged(bool sensorTrayElevatorAttached);

private:
    bool m_sensorTrayElevatorAttached = false;
};

#endif    // BONDERBASICCONFIG_H
